﻿@using ViVa_Portal.Controllers;
@using System.Web.Mvc;

<!DOCTYPE html>
<html>
<head>

    <title>@ViewBag.Title</title>
    <link href="@Url.Content("~/Content/Site.css")" rel="stylesheet" type="text/css" />
    <link href="@Url.Content("~/Content/Menu.css")" rel="stylesheet" type="text/css" />
    <link href="@Url.Content("~/Content/menu/dropdown.css")" rel="stylesheet" type="text/css" />
    <link href="@Url.Content("~/Content/menu/default.css")" rel="stylesheet" type="text/css" />
    <link href="@Url.Content("~/Content/Top_Navigation.css")" rel="stylesheet" type="text/css" />
    <link href="@Url.Content("~/Content/Tables_Forms.css")" rel="stylesheet" type="text/css" />
    <link href="@Url.Content("~/Content/jquery-ui-1.8.13.custom.css")" rel="stylesheet" type="text/css" />
    <link href="@Url.Content("~/Content/jquery.autocomplete.css")" rel="stylesheet" type="text/css" />

    <link href="@Url.Content("~/Content/flexigrid.css")" rel="stylesheet" type="text/css" />
    <link href="@Url.Content("~/Content/flexigrid.pack.css")" rel="stylesheet" type="text/css" />

    <link href="@Url.Content("~/Content/menu/menu.css")" rel="stylesheet" type="text/css" />

    <link rel="shortcut icon" href="/content/images/favicon.ico"/>
    <link rel="bookmark icon" href="/content/images/favicon.ico"/>
    
    <script src="@Url.Content("~/Scripts/jquery-1.5.1.min.js")" type="text/javascript"></script>
    <script src="@Url.Content("~/Scripts/jquery-ui-1.8.12.custom.min.js")" type="text/javascript"></script>
    <script src="@Url.Content("~/Scripts/MicrosoftAjax.js")" type="text/javascript"></script>
    <script src="@Url.Content("~/Scripts/MicrosoftMvcAjax.js")" type="text/javascript"></script>
    <script src="@Url.Content("~/Scripts/jquery.unobtrusive-ajax.min.js")" type="text/javascript"></script>
    <script src="@Url.Content("~/Scripts/jquery.autocomplete.js")" type="text/javascript"></script>
    <script src="@Url.Content("~/Scripts/picnet.table.filter.min.js")" type="text/javascript"></script>

    <script src="@Url.Content("~/Scripts/menu/menu.js")" type="text/javascript"></script>

    <script src="@Url.Content("~/Scripts/flexigrid.js")" type="text/javascript"></script>
    <script src="@Url.Content("~/Scripts/flexigrid.pack.js")" type="text/javascript"></script>

    <script src="@Url.Content("~/Scripts/custom_helper_functions.js")" type="text/javascript"></script>


</head>

<body>

@* Zet rechten in Session state *@
@Html.Partial("_Rights", ViewData["SecurityLevel"])


@* Header *@
@Html.Partial("_Header")


<div id="page">

@*    Hier komt het menu *@
<div>@Html.Partial("_Menu")</div>
      

@*    Hier komt de content  *@
    <div id="main">

    @if (Page.Title != null)
    {
        <h1 id="kop">@Page.Title</h1>
    }

    
@*  Controleerd op Errors. De DataView["ErrorHandling"] moet hiervoor gevuld zijn.
    Gebruik hiervoor een try { **code ** } catch (Exeption ex) { ViewData["ErrorHandling"] = ex.Message; }  *@
    @Html.Partial("partialViews/_CheckError")

    
@*  Renders body *@
        @RenderBody()

    </div>
    </div>

</body>
</html>
